import socket

def whereami():
    host = socket.gethostname()
    atwork = False
    atlaptop = False
    atnas = False

    if host == "halfandhalf":
        atwork = True
    elif host == "nas":
        atnas = True
    elif host == "laptop":
        atlaptop = True
    else:
        assert 0, "Unknown host {0}".format(host)

    return (atwork, atlaptop, atnas)
